package interfaceDEMO.Utils;

import top.jfunc.json.impl.JSONObject;

/**
 * @author wq
 * @since 2022-06-21 18:47
 */

public class SetJSONObject {

    public static JSONObject setJSONObject(String paramName,Object object,String functionId){
        JSONObject body = new JSONObject();
        //body.put("mobile","15869")
        body.put(paramName,object);
        JSONObject reqHead = new JSONObject();
        reqHead.put("functionId",functionId);
        JSONObject jsonObject = new JSONObject();
        jsonObject.put("body",body);
        jsonObject.put("reqHead",reqHead);
        return jsonObject;
    }
}
